/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ipark.gui.mapeditor;
import org.jgrapht.graph.*;

/**
 * class, which represents edge in graph
 * @author jernej
 */
public class RoadEdge extends DefaultWeightedEdge{
    
    private int numParkBox = 0;
    private String section = "";
    private String nameExit = "";
    private double distanceExit = 0;
    
    /**
     * return number of parking boxes
     * @return number of parking boxes
     */
    public int getNumParkBoxes(){
        return numParkBox;
    }
    /**
     * set number of parking boxes
     * @param num number of parking boxes
     */
    public void setNumParkBoxes(int num){
        numParkBox = num;
    }
    
    /**
     * return distance of nearest exit
     * @return distance of nearest exit
     */
    public double getDistanceExit(){
        return distanceExit;
    }
    
    /**
     * set distance of nearest exit
     * @param distance distance of nearest exit
     */
    public void setDistanceExit(double distance){
        distanceExit = distance;
    }
    
    /**
     * return section name
     * @return section name
     */
    public String getSection(){
        return section;
    }
    /**
     * set section name
     * @param sec new section name
     */
    public void setSection(String sec){
        section = sec;
    }
    
    /**
     * return exit name
     * @return exit name
     */
    public String getExitName(){
        return nameExit;
    }
    /**
     * set exit name
     * @param name new exit name
     */
    public void setExitName(String name){
        nameExit = name;
    }
}
